package com.g6.demo.consumer.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.g6.demo.City;
import com.g6.demo.CityService;
import org.springframework.stereotype.Service;

/**
 * @Author: g6
 * @Date: 2019/4/19 11:05
 */
@Service
public class MyServiceImpl implements MyService{

    @Reference(version = "1.0.0")
    CityService cityService;

    @Override
    public City findCityByName(String name) {
        return cityService.findCityByName(name);
    }
}
